VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "CoamingNo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
'*******************************************************************************
' Copyright (C) 2002, Intergraph Corp.  All rights reserved.
'
' Project: MfgProfileProcess
' Module:
'
' Description:  Determines the process settings for the mfg profile
'
' Author:
'
' Comments:
' 2004.04.22    MJV     Included correct error handling
'*******************************************************************************
Option Explicit

Implements IJDMfgProcessRule

Const MODULE = "MfgProfileProcess"

Private Sub IJDMfgProcessRule_ExecuteRule(ByVal Part As Object, MfgGeomCol2d As GSCADMfgRulesDefinitions.IJMfgGeomCol2d)
    Const METHOD = "CoamingNo: IJDMfgProcessRule_ExecuteRule"
    On Error GoTo ErrorHandler
    
    If TypeOf Part Is IJBeamPart Then Exit Sub
    
    Dim oSDProfilePart As New StructDetailObjects.ProfilePart
    Set oSDProfilePart.object = Part
    
    If oSDProfilePart.ProfileType = sptEdgeReinforcement Then
        Dim oProfileWrapper As MfgRuleHelpers.ProfilePartHlpr
        Set oProfileWrapper = New MfgRuleHelpers.ProfilePartHlpr
        Set oProfileWrapper.object = Part

        oProfileWrapper.RemoveMargins 8 'CoamingMargin
    End If
    
Exit Sub
 
ErrorHandler:

    Err.Raise StrMfgLogError(Err, MODULE, METHOD, , "SMCustomWarningMessages", 2025, , "RULES")

End Sub
 